﻿using LJX.SmartPark.Common.ResponseOutput;
using LJX.SmartPark.Domain.ParkManage;
using LJX.SmartPark.Domain.SafeManage;
using LJX.SmartPark.Service.SafeManage;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LJX.SmartPark.Service.ParkManage
{
    public interface ICustomerService : ITransientService
    {
        Task<Response<List<Customer>>> GetCustomerAsync(CustomerForm form);
        Task<Response<bool>> PostAddCustomer(Customer input);
        Task<Response<bool>> DeleteByIdAsync(Customer input);
        Task<Response<bool>> PutUpdateCustomer(Customer input);
    }

    public class CustomerForm
    {
        public int pageIndex { get; set; }

        public int pageSize { get; set; }

        public string title { get; set; }

        public int typeId { get; set; }
    }
}
